//
//  LBGorenjeCell.m
//  loveBeen
//
//  Created by 李田 on 16/11/20.
//  Copyright © 2016年 loveBeen. All rights reserved.
//

#import "LBGorenjeCell.h"

@implementation LBGorenjeCell

- (instancetype)initWithFrame:(CGRect)frame{
    
    if (self = [super initWithFrame:frame]) {
        
        [self setupUI];
    }
    return self;
}

#pragma mark - 搭建界面
- (void)setupUI{
    
    //    MARK: 标题
    UILabel *titleL = [UILabel cz_labelWithText:@"畅饮狂欢" fontSize:15 color:[UIColor blackColor]];
    [self.contentView addSubview: titleL];
    //    MARK: 描述
    UILabel *desL = [UILabel cz_labelWithText:@"" fontSize:12 color:[UIColor cz_randomColor]];
    [self.contentView addSubview:desL];
    //    MARK: 图片
    UIImageView *iconImageV = [[UIImageView alloc] init];
    [self.contentView addSubview:iconImageV];
    
    //    MARK: 布局
    [titleL mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(20);
        make.left.mas_equalTo(10);
    }];
    
    [desL mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(titleL.mas_left);
        make.top.mas_equalTo(8);
    }];
    
    [iconImageV mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(10);
        make.top.mas_equalTo(10);
        make.size.mas_equalTo(CGSizeMake(60, 60));
    }];
    
}
@end
